package com.aaa.web.service.impl.employeeserviceimpl;

import com.aaa.entity.AppBatteryOrder;
import com.aaa.web.dao.iemployeedao.IPayDao;
import com.aaa.web.service.iemployeeservice.IPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * BatteryOrderServiceImpl
 *
 * @author yyh
 * @date 2018/12/27
 * @time 20:11
 */
@Service
@Transactional
public class PayServiceImpl implements IPayService {
    @Autowired
    private IPayDao payDao;
    /**
     * @Author yyh
     * @Description //添加订单
     * @Date 2019/1/3 10:00 
     * @Param [order]
     * @return java.lang.Integer
     **/
    @Override
    public Integer addAppOrder(AppBatteryOrder order) {
        return payDao.addAppOrder(order);
    }
    /**
     * @Author yyh
     * @Description //更新订单状态
     * @Date 2019/1/3 10:00 
     * @Param []
     * @return java.lang.Integer
     **/
    @Override
    public Integer updateState() {
        return payDao.updateState();
    }
    /**
     * @Author yyh
     * @Description //添加后台订单
     * @Date 2019/1/3 10:29
     * @Param [map]
     * @return java.lang.Integer
     **/
    @Override
    public Integer addBackOrder(Map map) {
        return payDao.addBackOrder(map);
    }

    @Override
    public Integer insertBattery(String pid) {
        return payDao.insertBattery(pid);
    }

    @Override
    public Integer changeBatteryCount(String pid) {
        return payDao.changeBatteryCount(pid);
    }
}
